-- GENERATED SPELL FOR [Tunnel Rat Digger] --


function spell0_1175(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_1175', 670, 1)
end

function spell1_1175(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(7386,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1175', 592, 1)
end

function Sorts_1175(pUnit, Event)
local choix_sorts_1175 = math.random(0, 1)
if choix_sorts_1175 == 0 then
pUnit:RegisterEvent('spell0_1175', 1, 1)
end
if choix_sorts_1175 == 1 then
pUnit:RegisterEvent('spell1_1175', 1, 1)
end
end

function mob1175_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1175', math.random(1500, 3000), 1)
end

function mob1175_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1175_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1175_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1175, 1, 'mob1175_Action')
RegisterUnitEvent(1175, 2, 'mob1175_Leave')
RegisterUnitEvent(1175, 3, 'mob1175_Kill')
RegisterUnitEvent(1175, 4, 'mob1175_Die')
